package com.ruoyi.common.enums.erp;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @Author：YanWenLiang
 * @Date:2024-12-15-17:42
 */
@Getter
@AllArgsConstructor
public enum CrmFeeTypeEnum {
    PROCUREMENT("0", "采购", ""),
    OUTSOURCING("1", "外援", "crmApplyClearDetailsServiceImpl"),
    WORK_ORDER("2", "工单", ""),
    BUSINESS_TRIP("3", "差旅", ""),
    SOFTWARE_DEVELOPMENT("4", "软件研发", "crmApplyClearDetailsServiceImpl"),
    TAX("5", "税金", ""),
    COMPANY("6", "公司", ""),
    OTHER("7", "其他", "");

    private final String code;
    private final String info;
    private final String name;

    public static String getName(String code) {
        for (CrmFeeTypeEnum type : CrmFeeTypeEnum.values()) {
            if (type.code.equals(code)) {
                return type.name;
            }
        }
        return null;
    }
}
